home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / etc / init.d / unattended-upgrades < prev    next >
Text File  |  2009-07-20  |  841b  |  38 lines

  1. #! /bin/sh
  2. #
  3. ### BEGIN INIT INFO
  4. # Required-Start:
  5. # Required-Stop:
  6. # Provides:          unattended-upgrade-shutdown-check
  7. # Default-Start:     0 6
  8. # Default-Stop:      
  9. # Short-Description: Check if unattended upgrades are being applied
  10. # Description:       Check if unattended upgrades are being applied
  11. #                    and wait for them to finish
  12. ### END INIT INFO
  13.  
  14.  
  15. PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
  16. NAME=unattended-upgrades
  17. DESC=unattended-upgrades
  18.  
  19. set -e
  20.  
  21. case "$1" in
  22.   start|stop)
  23.     # FIXME: usplash integration?
  24.         echo -n "Checking for running $DESC: "
  25.     python /usr/share/unattended-upgrades/unattended-upgrade-shutdown
  26.         ;;
  27.   restart|force-reload)
  28.     # nothing
  29.     ;;
  30.   *)
  31.     N=/etc/init.d/$NAME
  32.     echo "Usage: $N {start|stop|restart|force-reload}" >&2
  33.     exit 1
  34.     ;;
  35. esac
  36.  
  37. exit 0
  38.